function changValue(url,tablename){
     Ext.Ajax.request({
       url: url,
       params:"",
       success:function(response){
	          var result=response.responseText;
	          var jsonData =eval('('+result+')');
	          for(var key in jsonData){
		          	   if(jsonData[key] == 'null' || jsonData[key] == null){ 
	                      jsonData[key] = '';
	                  }
	               if(key!="sqrq" && key!="slrq" && key!="tbrq"){//填表日期不赋值
			           	if(document.getElementsByName(tablename+"_"+key)[0]){
			           		document.getElementsByName(tablename+"_"+key)[0].value=jsonData[key];
			           	}
		           	}
	           	
		           if(key == "fwnrqs" || key == "fwnrsj" || key == "fwnrys" || key == "sqnrqs"  || key == "sqnrsj" || key == "sqnrys"){
		           		if(jsonData[key] != null && jsonData[key] =="0"){
		           			document.getElementsByName(tablename+"_"+key)[0].checked = "checked" ;
		           		}else{
		           			document.getElementsByName(tablename+"_"+key)[0].checked = false ;
		           		}
		           }
	           }
           }
  });
}
